function clicks(a){
	$.dialog({ 
    	lock: true,
    	fixed:true,
    	title: today+' 考勤申诉', 
    	content:'url:<%=basePath %>attend/myattend/test.jsp',
    	width: '350px',
		height: 200,
		max: false,
		min: false
    });
}
/*	AjaxAddData Code Start*/
	var req;
		function trim(stringToTrim) {
			return stringToTrim.replace(/^\s+|\s+$/g,"");
		}
		function SubClick() {
			var attID = document.getElementById("attId").value;
			var appObject = document.getElementById("appObject").value;
			var uName = document.getElementById("uName").value;
			var area = document.getElementById("area").value;
			if(appObject==0)
				{
				$.dialog.tips('请选择申诉对象！',1,'confirm.gif');
				}
			else {
				
			if(trim(area).length<=0){
				$.dialog.tips('申诉理由不可为空！',1,'confirm.gif');
			}else{
				var path = "../../SubAppeal";
				 $.ajax({
				      type: "post",
				      url: path,
				      cache: false,
				      dataType: "json",
				      data: "attId="+attID
				      +"&appObject="+appObject
				      +"&uName="+encodeURI(encodeURI(uName))
				      +"&area="+encodeURI(encodeURI(area)),
				      
				      //发送数据之前
				      beforeSend: function(){$.dialog.tips('正在提交中...',3,'loading.gif');},
				      //complete: function(){},
				      success: function(result){
				    	  if(result[0].a == 1){
				    		  $.dialog.tips('提交成功！',3,'success.gif');
				    	  }else if(result[0].a == 0){
				    		  $.dialog.tips('您好，提交失败，请及时联系管理员处理！',3,'error.gif');
				    	  }else{
				    		  $.dialog.tips('今日考勤已申诉！请耐心等待...',3,'face-smile.png');
				    	  }
				      }
					});
			}
			}
		}
/*	AjaxAddData Code End*/
		
		function clears(){
			$("#area").val("");
			$.dialog.tips('已清空！',1,'alert.gif');
		}
		
